import { MockMethod } from 'vite-plugin-mock';

export default [
    {
        url: '/api/hitokoto',
        method: 'get',
        response: () => {
            return {
                "id": 5961,
                "uuid": "a08d4092-84ea-462b-9803-a49f23ba480a",
                "hitokoto": "只要呼唤你的名字，我们的牵绊就永远不会消逝。",
                "type": "a",
                "from": "紫罗兰永恒花园外传：永远与自动手记人偶",
                "from_who": "艾米",
                "creator": "梦逍遥",
                "creator_uid": 4596,
                "reviewer": 4756,
                "commit_from": "web",
                "created_at": "1586787898",
                "length": 22
            }
        },
    },
    {
        url: '/api/getUsers',
        method: 'get',
        response: () => {
            return {
                code: 0,
                message: 'ok',
                data: ['Amy', 'Tim']
            }
        },
    },
] as MockMethod[];